package com.example.springboot.controller.mainifest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * jvm启动前的动态替换
 *
 * @Author:ChenZhangKun
 * @Date: 2021/11/10 11:56
 */
//@RestController
@RequestMapping("/main")
public class PreJvmMainifest {

    @GetMapping("/ifestt")
    public String index() {
        // 此时会被替换为 hello world【version2]
        return "hello world";
    }
}
